package com.lagou.service.impl;

import com.lagou.service.TpMonitorService;
import java.util.Random;

/**
 * <h1>Dubbo性能监控服务实现类</h1>
 * @author yzh
 */
public class TpMonitorServiceImpl implements TpMonitorService {

    @Override
    public void methodA() {
        //随机休眠0-100秒
        int random = new Random().nextInt(101);
        try {
            Thread.sleep(random);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void methodB() {
        //随机休眠0-100秒
        int random = new Random().nextInt(101);
        try {
            Thread.sleep(random);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void methodC() {
        //随机休眠0-100秒
        int random = new Random().nextInt(101);
        try {
            Thread.sleep(random);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
